< previous page page_777 next page >

Page 777
tip.gif
You should compile using native code, since speed is more of a concern than using up a few extra bytes of hard disk space.

To choose the compiler options, you need to click the Compile tab of the Project Properties dialog box (see Figure B.1). To squeeze every last bit of speed out of VB, you may want to also look at the Advanced Optimizations dialog box, also shown in Figure B.1. As you can see, Microsoft put these options in here with a "use at your own risk" warning. However, I usually check Remove Array Bounds Checksbecause the program code itself should do thisand Remove Safe Pentium(tm) FDIV Checkswhich turns off software correction for the infamous Pentium chip bug. If you want to play safe, making choices in the Advanced Options dialog box should probably be the last thing you do.
0777-01.jpg
Figure B.1
To optimize the output of the Visual Basic compiler,
visit the Advanced Optimizations dialog box.
Setting the Project Name, Title, and Icon
Another important step when compiling your code is to make sure that the project name and title are set to meaningful values. By default, Visual Basic assigns a generic name to your project, such as Project1. Even if you change the target filename from the Make Project dialog box, you still need to change the project name and title internally. If you have written an ActiveX component, such as an ActiveX DLL with a public class, you already know the importance of the project name and have probably already set it to a meaningful value. The project title is also important because it may appear in the Windows task list or an error dialog box. These name and title fields are located in the General and Make tabs of the Project Properties dialog box, respectively.
note.gif Generally, there is no reason why you need the project title and name to be different. If no project title is specified, VB automatically changes the project title to match the project name. square.gif

 
< previous page page_777 next page >